package presenters.component

class SecureComponent {

    def namespace = "gp"

    def authenticated = { callback ->
        if(session.user) {
            callback()
        }
    }

    def notAuthenticated = { callback ->
        if(!session.user) {
            callback()
        }
    }

}